package com.tledu.schedulingInfo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tledu.common.annotation.Excel;
import com.tledu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 排班明细对象 scheduling_item
 * 
 * @author ruoyi
 * @date 2024-09-07
 */
public class SchedulingItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 排班表id */
    @Excel(name = "排班表id")
    private Long scheduleId;

    /** 值班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "值班日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 值班员工id */
    @Excel(name = "值班员工id")
    private Long schedulingId;

    /** 创建者(申请人) */
    private String createUser;

    /** 更新者 */
    private String updateUser;
    private Long schedulingUserId;
    private Date schedulingDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setScheduleId(Long scheduleId) 
    {
        this.scheduleId = scheduleId;
    }

    public Long getScheduleId() 
    {
        return scheduleId;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setSchedulingId(Long schedulingId) 
    {
        this.schedulingId = schedulingId;
    }

    public Long getSchedulingId() 
    {
        return schedulingId;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("scheduleId", getScheduleId())
            .append("date", getDate())
            .append("schedulingId", getSchedulingId())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public void setSchedulingUserId(Long schedulingUserId) {
        this.schedulingUserId = schedulingUserId;
    }

    public Long getSchedulingUserId() {
        return schedulingUserId;
    }

    public void setSchedulingDate(Date schedulingDate) {
        this.schedulingDate = schedulingDate;
    }

    public Date getSchedulingDate() {
        return schedulingDate;
    }
}
